import service from "@/utils/fetch";
const post = {
  //查询会员分页
  vip_list(params) {
    return service({
      method: "get",
      params,
      url: "/api/vip/"
    });
  },

  //启用用户
  enable_vip(id) {
    return service({
      method: "post",
      url: `/api/vip/enable/${id}`
    });
  },

  //禁用用户
  disable_vip(id) {
    return service({
      method: "post",
      url: `/api/vip/disable/${id}`
    });
  },

  // 启用账号
  enable_user(id) {
    return service({
      method: "post",
      url: `/api/users/enable/${id}`
    });
  },

  // 停用账号
  disable_user(id) {
    return service({
      method: "post",
      url: `/api/users/disable/${id}`
    });
  },

  //发放积分
  sendPoint_vip(params) {
    return service({
      method: "post",
      data: params,
      url: `/api/vip/sendPoint`
    });
  },

  //查询积分记录
};

export default post;
